<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
		"http://www.w3.org/TR/xhtml1/DTD/xhtml-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:h="http://java.sun.com/jsf/html"
      xmlns:f="http://java.sun.com/jsf/core"
      xmlns:ui="http://java.sun.com/jsf/facelets">
      
     <h:head>
     <title>Asterisk Voice Recognition</title>
     <link rel="stylesheet" href="css/stylesip.css" type="text/css"/>
     </h:head> 
     
     <h:body>
     
     <h1>Asterisk Voice Recognition</h1>
     	<div id="menu">

	    <ul>
			<li class='active ' ><a href="asteriskconfig.jsf" title="Home">Home</a></li>
			<li class='has-sub'><a title="Asterisk">Asterisk</a> 
				<ul>
				<li><a href="sipconfig.jsf" title="Cadastrar ramal">Cadastrar ramal SIP</a></li>
				<li><a href="siptablelist.jsf" title="Listar ramais" onclick="#{sipMB.listSip()}">Listar ramais SIP</a></li>
				<li><a href="dialplanconfig.jsf" title="Dialplan">Dialplan</a></li>
				<li><a href="initasterisk.jsf" title="Comandos Asterisk">Comandos Asterisk</a></li>
				</ul>
			</li>
			<li class='has-sub' ><a title="Verbio">Verbio</a> 
				<ul>
				<li><a href="verbioconfig.jsf"  title="Configurar">Configurar verbio</a></li>
				<li><a href="verbiotext.jsf"  title="Verbio Texto">Verbio Texto</a></li>
				<li><a href="verbiodialplan.jsf"  title="Mensagem Atendimento">Mensagem Atendimento</a></li>
				</ul>
			</li>
			<li><a href="zoiper.jsf" title="Zoiper">Zoiper</a></li>
			<li><a href="register.jsf" title="Cadastrar">Cadastrar</a></li>
			<li><a href="index.jsf" title="Sair">Sair</a></li>
		</ul>
	</div>
	
	<h2>Cadastrar ramal SIP</h2>
<div class="aba">
		<h:form id="ramaissip">
		    <h:outputLabel class="nameLabel" value="Nome: " for="name" />
			<h:inputText id="name" value="#{sipMB.registerSip.name}"/>
			<h:outputLabel class="nameLabel" value="Ramal: " for="exten" />
			<h:inputText id="exten" value="#{sipMB.registerSip.extenNumber}"/>
			<h:outputLabel class="nameLabel" value="Senha: " for="password" />
			<h:inputSecret id="password" value="#{sipMB.registerSip.secret}"/>
			<h:outputLabel class="nameLabel" value="CallId: " for="callId" />
			<h:inputText id="callId" value="#{sipMB.registerSip.callerid}"/>
			<h:outputLabel class="nameLabel" value="Contexto: " for="context" />
			<h:inputText id="context" value="#{sipMB.registerSip.context}"/>
			<h:outputLabel class="nameLabel" value="Host: " for="host" />
			<h:inputText id="host" value="#{sipMB.registerSip.host}"/>
			<h:outputLabel class="nameLabel" value="DefaultIP: " for="dip" />
			<h:inputText id="dip" value="#{sipMB.registerSip.defaultIP}"/>
			<h:outputLabel class="nameLabel" value="Tipo: " for="type" />
		    <h:selectOneMenu id="type" value="#{sipMB.registerSip.type}">
						<f:selectItem itemValue="friend" itemLabel="Friend" />
						<f:selectItem itemValue="user" itemLabel="User" />
						<f:selectItem itemValue="peer" itemLabel="Peer" />
     		</h:selectOneMenu>
			<h:outputLabel class="nameLabel" value="Port: " for="port" />
			<h:inputText id="port" value="#{sipMB.registerSip. port}"/>
			<h:outputLabel class="nameLabel" value="Linguagem: " for="language" />
			<h:selectOneMenu id="language" value="#{sipMB.registerSip.language}">
						<f:selectItem itemValue="pt_br" itemLabel="pt_br" />
						<f:selectItem itemValue="pt" itemLabel="pt" />
						<f:selectItem itemValue="en" itemLabel="en" />
						<f:selectItem itemValue="en_us" itemLabel="en_us" />
						<f:selectItem itemValue="es" itemLabel="es" />
						<f:selectItem itemValue="es_ar" itemLabel="es_ar" />
     		</h:selectOneMenu>
     		<h:outputLabel class="nameLabel" value="Disallow: " for="disallow" />
			<h:selectOneMenu id="disallow" value="#{sipMB.registerSip.disallow}">
			            <f:selectItem itemValue="all" itemLabel="all" />
						<f:selectItem itemValue="alaw" itemLabel="alaw" />
						<f:selectItem itemValue="ulaw" itemLabel="ulaw" />
						<f:selectItem itemValue="g729" itemLabel="g729" />
						<f:selectItem itemValue="gsm" itemLabel="gsm" />
						<f:selectItem itemValue="ilbc" itemLabel="ilbc" />
     		</h:selectOneMenu>
     		<h:outputLabel class="nameLabel" value="Allow: " for="allow" />
			<h:selectOneMenu id="allow" value="#{sipMB.registerSip.allow}">
						<f:selectItem itemValue="alaw" itemLabel="alaw" />
						<f:selectItem itemValue="ulaw" itemLabel="ulaw" />
						<f:selectItem itemValue="g729" itemLabel="g729" />
						<f:selectItem itemValue="gsm" itemLabel="gsm" />
						<f:selectItem itemValue="ilbc" itemLabel="ilbc" />
     		</h:selectOneMenu>
					
			<h:commandButton class="nameLabel" value="Cadastrar" action="#{sipMB.registerSip()}"/>			
			</h:form>	
    </div>
	
	
     </h:body>
</html>